import 'package:get/get.dart';
import 'package:flutter_framework/components/layout/bottom_tabBar.dart';
import 'package:flutter_framework/pages/home/index.dart';
import 'package:flutter_framework/pages/auth/login.dart';
import './middleware.dart';

/// 路由配置
class RouteConfig {
  static List<GetPage> routes = [
    GetPage(name: '/', page: () => const BottomTabBar(), middlewares: [
      AuthMiddleWare(),
    ]),
    // GetPage(name: '/', page: () => const BottomTabBar(), middlewares: [
    //   AuthMiddleWare(),
    // ]),
    GetPage(name: '/Home', page: () => const HomePage()),
    GetPage(name: '/Login', page: () => const LoginPage()),
  ];
}
